package io.finer.erp.jeecg.bas.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.finer.erp.jeecg.bas.entity.SalesDeliveryEntry;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description: 发货单表
 * @Author: libw
 * @Date:   2021-05-04
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SalesDeliveryDTO {
	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    private String id;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String customerName;
	/**客户id*/
    private String customerId;
	/**客户电话*/
	@Excel(name = "客户电话", width = 15)
    @ApiModelProperty(value = "客户电话")
    private String customerPhone;
	/**客户地址*/
	@Excel(name = "客户地址", width = 15)
    @ApiModelProperty(value = "客户地址")
    private String customerAddress;
	/**日期*/
	@Excel(name = "日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "订单日期")
    private Date shippingDate;
	/**制单人*/
	@Excel(name = "制单人", width = 15)
    @ApiModelProperty(value = "制单人")
    private String maker;
	/**公司地址*/
	@Excel(name = "公司地址", width = 15)
    @ApiModelProperty(value = "公司地址")
    private String selfAddress;
	/**公司di*/
    private String companyId;
	/**电话*/
	@Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "公司电话")
    private String selfPhone;
	/**合计*/
	@Excel(name = "合计", width = 15)
    @ApiModelProperty(value = "合计")
    private BigDecimal totalAmount;
    /**合计大写*/
    @Excel(name = "合计大写", width = 15)
    private String totalBig;
    /**编号*/
    @Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String code;
    /**备注*/
    private String remark;
    /**运费id*/
    private String freightId;
    /**核销状态*/
    @Excel(name = "核销状态", width = 15)
    @ApiModelProperty(value = "核销状态")
    @Dict(dicCode = "hxStatus")
    private String hxType;
    /**核销id*/
    private String hxId;
    /**明细*/
    @Excel(name = "明细")
    @ApiModelProperty(value = "明细")
    private List<SalesDeliveryEntry> columns;

}
